<?php 
$others_side_ns = abs(intval($INI['system']['sideteam']));
$others_team_id = abs(intval($team['id']));
$others_city_id = abs(intval($city['id']));
$others_now = time();
if ( abs(intval($INI['system']['sideteam'])) ) {
	$oc = array( 
			'city_id' => array($others_city_id, 0), 
			'team_type' => 'normal',
			"id <> '$others_team_id'",
			"begin_time < '$others_now'",
			"end_time > '$others_now'",
			);
	$others = DB::LimitQuery('team', array(
				'condition' => $oc,
				'order' => 'ORDER BY `sort_order` DESC, `id` DESC',
				'size' => $others_side_ns,
				));
}
; ?>
<?php if($others){?>
<div class="sbox side-Business">
	<div class="sbox-top"></div>
	<div class="sbox-content">
		<div class="tip">
		<h2>Sản phẩm hôm nay...</h2>
		<?php $index=0; ?>
		<?php if(is_array($others)){foreach($others AS $one) { ?>
			<b><span id="number"><?php echo ++$index; ?></span><span id="anotherdeal"><a href="team.php?id=<?php echo $one['id']; ?>"><?php echo $one['title']; ?></a></span></b>
			<div class="disimg">
				<div class="numberdiscount">-<?php echo formatMoney(100*($one['market_price'] - $one['team_price'])/$one['market_price'],2); ?> %</div>
			</div>
			<?php if($one['image']){?>
				<a href="/team.php?id=<?php echo $one['id']; ?>"><img src="<?php echo team_image($one['image'], true); ?>" width="195" border="0" /></a>
					<div id="price_other">
						<div id="other_giagoc">Giá gốc <?php echo formatMoney($one['market_price']); ?></div>
						<div id="other_giaban">Còn lại <span class="team_price_other"><?php echo formatMoney($one['team_price']); ?></span></div>
						<a href="team/buy.php?id=<?php echo $one['id']; ?>"><img alt="" src="../static/css/i/buy-now.png"> </a>
					</div>
			<?php }?>
		<?php }}?>
		</div>
	</div>
	<div class="sbox-bottom"></div>
</div>
<?php }?>
